libxenlight: tests a lots more of xl return value inside the library
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 12 Jan 2010 07:02:29 +0000 (07:02 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 12 Jan 2010 07:02:29 +0000 (07:02 +0000)
commitf777e25427e0204eaa74f8739fe02c436bdfc339
tree4bcf09002f543bfdcceb9c0fae23b9f9a237f01f
parent60e8e9aabcca4188e5ad2d0b5c8a448bd0c4437e
libxenlight: tests a lots more of xl return value inside the library
and in xl.

introducing a domain where the xenguest build function has fail, lead
to having xenstored receiving SIGBUS, since it's trying to access some
of the domain's memory, which haven't been properly allocated. (it
doesn't seems to be a way to make xenstored more robust to this though
since xc_map_foreign_range just succeed).

make xl a lot more robust regarding all those random errors possible.

Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/xl.c